﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Paint
{
    public partial class Attributes : Form //Thay doi canvas
    {
        public int CanvasWidth //Chieu dai se thay doi
        {
            get //Ghi
            {
                return Int32.Parse(txtWidth.Text);
            }
            set //Doc
            {
                txtWidth.Text = value.ToString(); //Value dung de am chi gia tri ng` ta gan
            }
        }
        public int CanvasHeight //Chieu cao se thay doi
        {
            get
            {
                return Int32.Parse(txtHeight.Text);
            }
            set
            {
                txtHeight.Text = value.ToString();
            }
        }
        public Attributes()
        {
            InitializeComponent();
        }
       
    }
}
